﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BusinessObjects.BusinessRules;

namespace BusinessObjects.HumanResources
{
    public class TimeSheetSign : BusinessObject
    {
        public TimeSheetSign()
        {
            AddRule(new ValidateRequired("TimeSheetSignCode"));
            AddRule(new ValidateLength("TimeSheetSignCode", 0, 20));

            AddRule(new ValidateRequired("TimeSheetSignName"));
            AddRule(new ValidateLength("TimeSheetSignName", 0, 255));
        }

        public TimeSheetSign(string timeSheetSignId, string timeSheetSignCode, string timeSheetSignName,
                                decimal salaryRate, string description, bool isActive)
            : this()
        {
            TimeSheetSignID = timeSheetSignId;
            TimeSheetSignCode = timeSheetSignCode;
            TimeSheetSignName = timeSheetSignName;
            SalaryRate = salaryRate;
            Description = description;
            IsActive = isActive;
        }

        public string TimeSheetSignID { get; set; }

        public string TimeSheetSignCode { get; set; }

        public string TimeSheetSignName { get; set; }

        public decimal SalaryRate { get; set; }

        public string Description { get; set; }

        public bool IsActive { get; set; }
    }
}
